package com.hcom.configuration;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description：
 * @Author：曹杰克
 * @CreateTime：2022/9/22 19:31
 */
@Configuration
public class ConfigurationJson {
    //    对象序列化,取代默认的rabbitmq的jdk序列化
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
